﻿#region

using System;
using System.Windows.Forms;
using Presentation;

#endregion

namespace Application {
    public partial class MainScreen : Form, IMainView {
        public MainScreen() {
            InitializeComponent();
        }

        private void btnBuildSpanningTree_Click(object sender, EventArgs e) {
            BuildDecompositionTree();
        }

        public Action BuildDecompositionTree { private get; set; }

        public PEHyperGraph HyperGraph { 
            get {
            //return (PEHyperGraph)bsHyperGraph.DataSource;
                return new PEHyperGraph(txtHyperGraph.Text);
        }
            set {
                //bsHyperGraph.DataSource = value;
                txtHyperGraph.Text = value.Text;
            }
        }
        public PEGraph DecompositionTree {
            set {
                //bsDecompositionTree.DataSource = value;
                txtSpanningTree.Text = value.Text;
            }
        }
    }
}